package com.aya.ite.coffee;

import java.util.Iterator;

public class Dinner {
    private MenuItem[] menuItems  = new MenuItem[6];
    private int position = 0;

    public boolean addMenu(MenuItem menuItem) {
        if(position< menuItems.length){
            menuItems[position] = menuItem;
            position++;
        }
        return false;
    }

    public Iterator<MenuItem> createIterator() {
        return new IteratorAdaptor(menuItems);
    }

}
